package com.tiantang.mybatis.helloworld.domain;

import java.io.Serializable;
import java.util.List;

/**
 * 
 * @description：功能描述	部门实体类，对应t_department表
 * @author： TianTang
 * 创建时间： 2018年2月4日
 * @version：1.0
 * Copyright (c) 2018年 七彩group
 */
public class Department implements Serializable {
	
	private static final long serialVersionUID = 1L;

	private Long id;//数据表主键
	
	private String departmentName;//部门名称
	
	private List<Employee> employees;//部门中员工集合
	
	public Department() {
		super();
	}

	public Department(Long id, String departmentName) {
		super();
		this.id = id;
		this.departmentName = departmentName;
	}
	
	public Department(String departmentName) {
		super();
		this.departmentName = departmentName;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDepartmentName() {
		return departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	public List<Employee> getEmployees() {
		return employees;
	}

	public void setEmployees(List<Employee> employees) {
		this.employees = employees;
	}

	@Override
	public String toString() {
		return "Department [id=" + id + ", departmentName=" + departmentName + ", employees=" + employees + "]";
	}
	
	

}
